package com.ddlaw.serviceImpl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ddlaw.entity.TLawThemes;
import com.ddlaw.entity.TThemesComments;
import com.ddlaw.mapper.TLawThemesMapper;
import com.ddlaw.service.LawThemeService;
@Service
@Transactional
public class LawThemeServiceImpl implements LawThemeService{

	@Resource
	TLawThemesMapper themesMapper;
	@Override
	public List<TLawThemes> getThemeById(Integer themeId) {
		// TODO Auto-generated method stub
		return themesMapper.getThemeById(themeId);
	}
	
	@Override
	public TLawThemes getThemeByThemeId(Integer themeId) {
		// TODO Auto-generated method stub
		return themesMapper.getThemeByThemeId(themeId);
	}

	@Override
	public void addConmment(TThemesComments comments) {
		// TODO Auto-generated method stub
		themesMapper.addConmment(comments);
	}
	
	@Override
	public List<TThemesComments> getConmmentById(Integer themeId) {
		// TODO Auto-generated method stub
		return themesMapper.getConmmentById(themeId);
	}
	
}
